#ifndef QAVCODEC_P_H
#define QAVCODEC_P_H

#include <QObject>
#include <memory>

QT_BEGIN_NAMESPACE

struct AVCodec;
struct AVCodecContext;
struct AVStream;
class QAVCodecPrivate;
class QAVCodec : public QObject
{
public:
    ~QAVCodec();

    bool open(AVStream* stream);
    AVCodecContext* avctx() const;
    void setCodec(const AVCodec* c);
    const AVCodec* codec() const;

protected:
    QAVCodec(QObject* parent = nullptr);
    QAVCodec(QAVCodecPrivate &d, QObject* parent = nullptr);
    std::unique_ptr<QAVCodecPrivate> d_ptr;
    Q_DECLARE_PRIVATE(QAVCodec)
private:
    Q_DISABLE_COPY(QAVCodec)
};

QT_END_NAMESPACE

#endif
